package com.peking.donations;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;

/**
 * 项目启动入口
 *
 */
@Configuration
@EnableAutoConfiguration
@ComponentScan(basePackages = "com.peking.donations")
@EnableConfigurationProperties
@EnableJpaRepositories
public class App {
    public static void main(String[] args) {
        // 启动Spring Boot项目的唯一入口
        SpringApplication.run(App.class, args);
    }
}
